﻿using FluffyUnderware.DevTools.Extensions;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BackHide : MonoBehaviour
{
   public static bool isFirstHide = true;
    // Start is called before the first frame update
    void Awake()
    {
        if (isFirstHide)
        {

        }
        else
        {
            gameObject.SetActive(false);
        }
    }
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
    }
    public void Hide()
    {
        if (isFirstHide)
        {
            gameObject.SetActive(false);
            isFirstHide = false;
        }
        else
        {
            Debug.Log("BackHide is already hidden");
        }
    }
}
